<form action="#" method="post" name="#" onsubmit="dmApp.editSave(this); return false;">
<table class="devmod_add_table">
{foreach from=$grid_edit_obj item=item key=key}	
	{assign var="class" value="{cycle values="dark,bright"}"}
	<tr class="{$class}">
		<td width="140" {if $table_struct.$key == "text"}colspan="2"{/if}>
			<strong>{$this_config.fields.$key}</strong>
			{if isset($this_config.text.$key)}<span class="field-tip"><img src="{$host}{$theme}img/icons/info.png" align="absmiddle" /> {$this_config.text.$key}</span>{/if}
		</td>
			
{if $table_struct.$key == "text"}
	</tr>
	<tr class="{$class}">
{/if}
			
		<td {if $table_struct.$key == "text"}colspan="2"{/if}>
		{if isset($this_config.cast.$key)}
			{$item}
		{else}
			{if isset($this_config.cast_multi_lang) and is_array($this_config.cast_multi_lang) and array_key_exists($key, $this_config.cast_multi_lang)}
				<div class="devmod_multilang_block">
					<table>
					{foreach from=$item item=content key=lang}
						<tr>
							<td valign="top">{$lang}</td>
							<td>
							{if $table_struct.$key == "text"}
								<textarea class="textarea" rows="10" name="{$key}[{$lang}]" style="height:65px; width:620px;">{$content}</textarea>
							{else}
								<input type="text" class="text" name="{$key}[{$lang}]" value="{$content}" />
							{/if}
							</td>
						</tr>
					{/foreach}
					</table>
				</div>
			{else}
				{if $table_struct.$key == "text"}
					<textarea class="textarea" rows="10" name="{$key}">{$item}</textarea>
				{else}
					<input type="text" class="text" name="{$key}" value="{$item}" />
				{/if}
			{/if}
		{/if}
		</td>
	</tr>	
	{/foreach}
	<tr>
		<td>
			<input type="submit" class="submit" name="saveGrid" value="Speichern" colspan="2" />
		</td>
	</tr>
</table>
</form>
{if isset($tpl_addons)}
	{foreach from=$tpl_addons item=item}
		{$item}
	{/foreach}
{/if}
